﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace STKMIS.Model
{
    /// <summary>
    /// 的实体类
    /// </summary>
    [Serializable]
    public class PoductUnitModel
    {
         // 常量
        public const string tableName = "ProductUnit";
        public const string primaryKeyName = "ProUnitID";

        // 成员变量
        private int _proUnitID;
        private string _proUnitName;
        private Boolean _isDeleted;

        /// <summary>
        /// 字段名结构
        /// <summary>
        public struct FieldName
        {
            public const string proUnitID = "ProUnitID";
            public const string proUnitName = "ProUnitName";
            public const string isDeleted = "IsDeleted";
        }

        /// <summary>
        /// 默认构造函数
        /// <summary>
        public PoductUnitModel() { }

        /// <summary>
        /// 带参构造函数
        /// <summary>
        ///<param name="proUnitID">产品单位主键ID</param>
        ///<param name="proUnitName">产品单位名称</param>
        ///<param name="isDeleted">是否已删除</param>
        public PoductUnitModel(int proUnitID, string proUnitName, Boolean isDeleted)
        {
            this._proUnitID = proUnitID;
            this._proUnitName = proUnitName;
            this._isDeleted = isDeleted;
        }

        /// <summary>
        /// 产品单位主键ID
        /// <summary>
        public int ProUnitID
        { 
            get { return _proUnitID; }
            set { _proUnitID = value; }
        }

        /// <summary>
        /// 产品单位名称
        /// <summary>
        public string ProUnitName
        { 
            get { return _proUnitName; }
            set { _proUnitName = value; }
        }

        /// <summary>
        /// 是否已删除
        /// <summary>
        public Boolean IsDeleted
        { 
            get { return _isDeleted; }
            set { _isDeleted = value; }
        }
    }
}
